package com.lagou.model;
/**
 * 增加新的Exam类 来表示试题
 */

import java.io.Serializable;

public class Exam implements Serializable {

    private static final long serialVersionUID = -4729638835655094299L;
    private String title;
    private String A;
    private String B;
    private String C;
    private String D;
    private String Answer;

    public Exam() {
    }

    public Exam(String title, String a, String b, String c, String d,String answer) {
        this.title = title;
        A = a;
        B = b;
        C = c;
        D = d;
        Answer = answer;

    }



    public String getAnswer() {
        return Answer;
    }

    public void setAnswer(String answer) {
        Answer = answer;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getA() {
        return A;
    }

    public void setA(String a) {
        A = a;
    }

    public String getB() {
        return B;
    }



    public void setB(String b) {
        B = b;
    }

    public String getC() {
        return C;
    }

    public void setC(String c) {
        C = c;
    }

    public String getD() {
        return D;
    }

    public void setD(String d) {
        D = d;
    }

    @Override
    public String toString() {
        return "Exam{" +
                "title='" + title + '\'' +
                ", A='" + A + '\'' +
                ", B='" + B + '\'' +
                ", C='" + C + '\'' +
                ", D='" + D + '\'' +
                ", Answer='" + Answer+
                '}';
    }
}